﻿using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

namespace Ccit.OA.MsAddrBook
{
    /// <summary>
    /// ADDR_A1（个人通讯录表）
    /// </summary>
    public class MsAddBooks
    {
        #region 私有属性
            private string _id;         //主键ID
            private string _userid;     //用户ID
            private string _name;       //名称
            private string _call;       //称谓
            private string _birthday;   //生日
            private string _groupid;    //分组ID
            private string _groupname;  //分组名称
            private string _company;    //单位
            private string _deptname;   //部门
            private string _postname;   //职务
            private string _telphone;   //手机
            private string _comtel;     //办公电话
            private string _ftel;       //家庭电话
            private string _fax;        //传真
            private string _maddress;   //邮寄地址
            private string _postcode;   //邮编
            private string _msnname;    //MSN
            private string _qname;      //QQ
            private string _email;      //email
            private string _makename;   //标志名称
            private string _makenum;    //标志的字典编号
            private string _url;        //网址
            private string _remark;     //备注
        #endregion
        #region 共有属性
            /// <summary>
            /// ID
            /// </summary>
            public string ID
            {
                set { _id = value; }
                get { return ((!string.IsNullOrEmpty(_id)) ? _id : ""); }
            }
            /// <summary>
            /// 用户ID
            /// </summary>
            public string UserId
            {
                set { _userid = value; }
                get { return ((!string.IsNullOrEmpty(_userid)) ? _userid : ""); }
            }
            /// <summary>
            /// _name
            /// </summary>
            public string Name
            {
                set { _name = value; }
                get { return ((!string.IsNullOrEmpty(_name)) ? _name : ""); }
            }
            /// <summary>
            /// _call
            /// </summary>
            public string Call
            {
                set { _call = value; }
                get { return ((!string.IsNullOrEmpty(_call)) ? _call : ""); }
            }
            /// <summary>
            /// _birthday
            /// </summary>
            public string Birthday
            {
                set { _birthday = value; }
                get { return ((!string.IsNullOrEmpty(_birthday)) ? _birthday : ""); }
            }
            /// <summary>
            /// _groupid
            /// </summary>
            public string GroupId
            {
                set { _groupid = value; }
                get { return ((!string.IsNullOrEmpty(_groupid)) ? _groupid : ""); }
            }
            /// <summary>
            /// _groupname
            /// </summary>
            public string GroupName
            {
                set { _groupname = value; }
                get { return ((!string.IsNullOrEmpty(_groupname)) ? _groupname : ""); }
            } 
            /// <summary>
            /// _company
            /// </summary>
            public string Company
            {
                set { _company = value; }
                get { return ((!string.IsNullOrEmpty(_company)) ? _company : ""); }
            }
            /// <summary>
            /// _deptname
            /// </summary>
            public string DeptName
            {
                set { _deptname = value; }
                get { return ((!string.IsNullOrEmpty(_deptname)) ? _deptname : ""); }
            }
            /// <summary>
            /// _postname
            /// </summary>
            public string PostName
            {
                set { _postname = value; }
                get { return ((!string.IsNullOrEmpty(_postname)) ? _postname : ""); }
            }
            /// <summary>
            /// _telphone
            /// </summary>
            public string Telphone
            {
                set { _telphone = value; }
                get { return ((!string.IsNullOrEmpty(_telphone)) ? _telphone : ""); }
            }
            /// <summary>
            /// _comtel
            /// </summary>
            public string Comtel
            {
                set { _comtel = value; }
                get { return ((!string.IsNullOrEmpty(_comtel)) ? _comtel : ""); }
            }
            /// <summary>
            /// _ftel
            /// </summary>
            public string Ftel
            {
                set { _ftel = value; }
                get { return ((!string.IsNullOrEmpty(_ftel)) ? _ftel : ""); }
            }
            /// <summary>
            /// 用户ID
            /// </summary>
            public string Fax
            {
                set { _fax = value; }
                get { return ((!string.IsNullOrEmpty(_fax)) ? _fax : ""); }
            }
            /// <summary>
            /// _maddress
            /// </summary>
            public string Maddress
            {
                set { _maddress = value; }
                get { return ((!string.IsNullOrEmpty(_maddress)) ? _maddress : ""); }
            }
            /// <summary>
            /// _postcode
            /// </summary>
            public string Postcode
            {
                set { _postcode = value; }
                get { return ((!string.IsNullOrEmpty(_postcode)) ? _postcode : ""); }
            } 
            /// <summary>
            /// _msnname
            /// </summary>
            public string msnname
            {
                set { _msnname = value; }
                get { return ((!string.IsNullOrEmpty(_msnname)) ? _msnname : ""); }
            }
            /// <summary>
            /// _qname
            /// </summary>
            public string qname
            {
                set { _qname = value; }
                get { return ((!string.IsNullOrEmpty(_qname)) ? _qname : ""); }
            }
            /// <summary>
            /// _email
            /// </summary>
            public string email
            {
                set { _email = value; }
                get { return ((!string.IsNullOrEmpty(_email)) ? _email : ""); }
            }
            /// <summary>
            /// _makename
            /// </summary>
            public string makename
            {
                set { _makename = value; }
                get { return ((!string.IsNullOrEmpty(_makename)) ? _makename : ""); }
            }
            /// <summary>
            /// _makenum
            /// </summary>
            public string makenum
            {
                set { _makenum = value; }
                get { return ((!string.IsNullOrEmpty(_makenum)) ? _makenum : ""); }
            }
            /// <summary>
            /// _url
            /// </summary>
            public string url
            {
                set { _url = value; }
                get { return ((!string.IsNullOrEmpty(_url)) ? _url : ""); }
            }
            /// <summary>
            /// _remark
            /// </summary>
            public string remark
            {
                set { _remark = value; }
                get { return ((!string.IsNullOrEmpty(_remark)) ? _remark : ""); }
            }
        #endregion
        #region method
            public MsAddBooks()
            { }
            public MsAddBooks(string sId,string sUserId,string sName,string sCall,string sBirthDay,string sGroupId,
                              string sGroupName,string sCompany,string sDeptName,string sPostName,string sTelphone,
                              string sComtel,string sFtel,string sFax,string sMaddress,string sPostCode,string sMsnName,
                              string sQname,string sEmail,string sMakename,string sMakeNum,string sUrl,string sRemark)
            {
                 _id = sId;                 //主键ID
                 _userid = sUserId;         //用户ID
                 _name = sName;             //名称
                 _call = sCall;             //称谓
                 _birthday = sBirthDay;     //生日
                 _groupid = sGroupId;        //分组ID
                 _groupname = sGroupName;    //分组名称
                 _company = sCompany;      //单位
                 _deptname = sDeptName;   //部门
                 _postname = sPostName;   //职务
                 _telphone = sTelphone;   //手机
                 _comtel = sComtel;       //办公电话
                 _ftel = sFtel;          //家庭电话
                 _fax = sFax;            //传真
                 _maddress = sMaddress;  //邮寄地址
                 _postcode = sPostCode;  //邮编
                 _msnname = sMsnName;    //MSN
                 _qname = sQname;        //QQ
                 _email = sEmail;        //email
                 _makename = sMakename;  //标志名称
                 _makenum = sMakeNum;    //标志的字典编号
                 _url = sUrl;            //网址
                 _remark = sRemark;      //备注
            }
        #endregion
    }
}
